import React from 'react';
import cn from 'classnames';
import { Icon } from 'antd';

const BizIcon = props => {
    const { type, className, isAntdIcon, ...rest } = props;
    return isAntdIcon !== undefined && isAntdIcon ? (
        <i {...rest} className={cn('iconfont', `icon${type}`, className)}>
            <Icon type={type} />
        </i>
    ) : (
        <i {...rest} className={cn('iconfont', `icon${type}`, className)} />
    );
};
export default BizIcon;
